package com.example.a14110100409.yuejiandemo.service;

import com.example.a14110100409.yuejiandemo.javabean.Club;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by owner on 2017/9/25.
 */

public interface ClubService {
    //获取俱乐部列表
    @GET("lists/mod/club")
    Call<List<Club>> getClubList();
    //获取俱乐部详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getClubinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //获取俱乐部课程详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getClassinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //获取俱乐部视频详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getVideoinfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path ("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );


    //取消关注俱乐部
    @GET("delete/mod/{mod}/club_id/{club_id}/user_id/{user_id}/SessionID/{SessionID}")
    Call<Integer> Nocollect(
            @Path("mod") String mod,
            @Path("club_id") String club_id,
            @Path("user_id") int user_id,
            @Path("SessionID") String SessionID
    );

}
